package com.exchange.interfaces.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.exchange.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 数据交换_日志表 exchange_log
 * 
 * @author exchange
 * @date 2019-06-03
 */
public class ExchangeLog extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** ID：key值 */
	private Long id;
	/** 交换类型：1=上报 2=下发 */
	private Integer exchangeType;
	/** 数据对象类型：1=事项目录 2=实施清单 3=认领关系 a=国家目录推送 */
	private String objectType;
	/** 数据对象原ID */
	private String objectId;
	/** 数据对象 */
	private String objectBody;
	/** 数据对象来源行政划分代码 */
	private String objectLevel;
	/** 数据对象创建时间 */
	private Date objectCreatetime;
	/** 处理状态：0=未处理 1=正确 2=错误 */
	private Integer processStatus;
	/** 待处理时间 */
	private Date pendingDatetime;
	/** 已处理时间 */
	private Date processedDatetime;
	/** 同步状态：0=未同步 1=待同步 2=已同步 */
	private Integer syncStatus;
	/** 同步时间 */
	private Date syncDatetime;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setExchangeType(Integer exchangeType) 
	{
		this.exchangeType = exchangeType;
	}

	public Integer getExchangeType() 
	{
		return exchangeType;
	}
	public void setObjectType(String objectType) 
	{
		this.objectType = objectType;
	}

	public String getObjectType() 
	{
		return objectType;
	}
	public void setObjectId(String objectId) 
	{
		this.objectId = objectId;
	}

	public String getObjectId() 
	{
		return objectId;
	}
	public void setObjectBody(String objectBody) 
	{
		this.objectBody = objectBody;
	}

	public String getObjectBody() 
	{
		return objectBody;
	}
	public void setObjectLevel(String objectLevel) 
	{
		this.objectLevel = objectLevel;
	}

	public String getObjectLevel() 
	{
		return objectLevel;
	}
	public void setObjectCreatetime(Date objectCreatetime) 
	{
		this.objectCreatetime = objectCreatetime;
	}

	public Date getObjectCreatetime() 
	{
		return objectCreatetime;
	}
	public void setProcessStatus(Integer processStatus) 
	{
		this.processStatus = processStatus;
	}

	public Integer getProcessStatus() 
	{
		return processStatus;
	}
	public void setPendingDatetime(Date pendingDatetime) 
	{
		this.pendingDatetime = pendingDatetime;
	}

	public Date getPendingDatetime() 
	{
		return pendingDatetime;
	}
	public void setProcessedDatetime(Date processedDatetime) 
	{
		this.processedDatetime = processedDatetime;
	}

	public Date getProcessedDatetime() 
	{
		return processedDatetime;
	}
	public void setSyncStatus(Integer syncStatus) 
	{
		this.syncStatus = syncStatus;
	}

	public Integer getSyncStatus() 
	{
		return syncStatus;
	}
	public void setSyncDatetime(Date syncDatetime) 
	{
		this.syncDatetime = syncDatetime;
	}

	public Date getSyncDatetime() 
	{
		return syncDatetime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("exchangeType", getExchangeType())
            .append("objectType", getObjectType())
            .append("objectId", getObjectId())
            .append("objectBody", getObjectBody())
            .append("objectLevel", getObjectLevel())
            .append("objectCreatetime", getObjectCreatetime())
            .append("processStatus", getProcessStatus())
            .append("pendingDatetime", getPendingDatetime())
            .append("processedDatetime", getProcessedDatetime())
            .append("syncStatus", getSyncStatus())
            .append("syncDatetime", getSyncDatetime())
            .toString();
    }
}
